from rest_framework import serializers


class GoodsSerializer(serializers.Serializer):
    category = serializers.StringRelatedField(read_only=True)
    count = serializers.IntegerField()


# from apps.goods.models import GoodsVisitCount
#
#
# class GoodsModelSeriaizer(serializers.ModelSerializer):
#     category = serializers.StringRelatedField(read_only=True)
#
#     class Meta:
#         model = GoodsVisitCount
#         fields = ['category', 'count']
